<template>
  <!-- 模态框 -->
  <div class="all">
    <div class="box">
      <div class="header">
        <slot name="header"></slot>
      </div>
      <div class="body">
        <slot name="body">
        </slot>
      </div>
      <div class="footer">
        <slot name="footer">
        </slot>
      </div>
    </div>
  </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
// 模态框
.all {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);

  .box {
    position: fixed;
    top: 50%;
    left: 50%;
    border: 1px solid #a69700;
    border-radius: 5%;
    width: 20%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    font-size: .266rem;
    z-index: 5;

    .header {
      background-color: #bfb230;
      padding: .1667rem;
      color: #fff;
    }

    .body {
      background-color: #f5f5f5;
      padding: .1rem 0;
      text-align: center;
    }

    .footer {
      display: flex;
      justify-content: end;
      align-items: center;
      background-color: #f5f5f5;
      padding: .1667rem;
      color: #fff;
    }
  }
}
</style>